<!DOCTYPE html>
<html lang="en" >
<head>
    <meta charset="UTF-8">
    <title>拍卖商品修改页面</title>
    <link rel="stylesheet" href="./src/css/layui.css"  media="all">
</head>
<body>
<form class="layui-form" style="width: 80%;" id="auf">
     <div class="layui-form-item">
        <label class="layui-form-label">拍卖商品名</label>
        <div class="layui-input-block">
          <div style="line-height: 40PX;" class="layui-input">商品1号</div>
		   <label><span style="color: red">(暂时不支持修改！)</span></label>
        </div>
      </div>
    <div class="layui-form-item">
        <label class="layui-form-label">卖家昵称</label>
        <div class="layui-input-block">
            <div style="line-height: 40PX;" class="layui-input">商品1号</div>
            <label><span style="color: red">(暂时不支持修改！)</span></label>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">拍卖数量</label>
        <div class="layui-input-block">
            <input type="number" id="goodsNumber" class="layui-input"
                   lay-verify="number" placeholder="输入拍卖数量" name="goodsNumber" value="">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">起拍价格￥</label>
        <div class="layui-input-block">
            <input type="number" id="goodsPrice" class="layui-input"
                   lay-verify="number" placeholder="输入起拍价格" name="goodsPrice" value="">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">加价幅度￥</label>
        <div class="layui-input-block">
            <input type="number" id="duringPrice" class="layui-input"
                   lay-verify="number" placeholder="输入加价幅度" name="duringPrice" value="">
        </div>
    </div>
   <div class="layui-form-item">
       <label class="layui-form-label">意向价格￥</label>
       <div class="layui-input-block">
           <input type="number" id="intentionPrice" class="layui-input"
                  lay-verify="number" placeholder="输入意向价格" name="intentionPrice" value="">
       </div>
   </div>
      <div class="layui-form-item">
          <label class="layui-form-label">商品状态</label>
          <div class="layui-input-block">
            <input type="radio" name="sex" value="0" title="正常" checked="">
            <input type="radio" name="sex" value="1" title="不正常">
            <input type="radio" name="sex" value="2" title="冻结" >
          </div>
        </div>
   <!-- <div class="layui-form-item">
        <label class="layui-form-label"style="width: 150PX;">拍卖开始时间-结束时间</label>
        <div class="layui-inline"> <!-- 注意：这一层元素并不是必须的 -->
          <!-- <input type="text" class="layui-input" id="auctionStartTime" style="width: 300PX;"> -->
     <!--   </div>
    </div> -->
	<div class="layui-form-item">
		 <label class="layui-form-label">开始时间</label>
		 <div class="layui-input-block">
	                <input type="text" id="createTimeStart" class="layui-input userName"
	                       name="createTimeStart" placeholder="拍卖开始时间" value="">
	            </div>
				</div>
	            <div class="layui-form-item">
					<label class="layui-form-label">结束时间</label>
					 <div class="layui-input-block">
	                <input type="text" id="createTimeEnd" class="layui-input userName"
	                       name="createTimeEnd" placeholder="拍卖结束时间" value="">
	            </div>
				</div>
	<div class="layui-form-item layui-form-text">
	    <label class="layui-form-label" >物品描述</label>
	    <div class="layui-input-block">
	      <textarea placeholder="请输入内容" class="layui-textarea"></textarea>
	    </div>
	  </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit="" lay-filter="addUser">立即提交</button>
        </div>
    </div>
</form>
<script src="./src/layui.js"></script>
<script>
	layui.use(['laydate','form'],function(){
			var date = new Date();
			var dd = date.getFullYear();
			var mm =date.getMonth()+1;
			var aa =date.getDate();
			var h = date.getHours();
			var m = date.getMinutes();
			var s = date.getSeconds();
			var p = dd +"-"+ mm + "-"+aa + " " + h + ":" + m + ":"+ s;
		// alert(p);2020322-15-30-50  2017-8-11 12:30:00
		// var nowdate= DateTimeFormat.format(new Date());
		var laydate=layui.laydate,
		form=layui.form;
		//日期时间选择器
		laydate.render({ 
		  elem: '#auctionStartTime'
		  ,type: 'datetime',
		  range:true,
		  min:p
		});
		
		  var start = laydate.render({
		                elem:'#createTimeStart',
		                min:p,
		                type:'datetime',
		                trigger:'click',	
		                done:function (value,date) {
		                    end.config.min = date;
		                    end.config.min.month=date.month-1;
		                }
		            })
		
		            var end = laydate.render({
		                elem:'#createTimeEnd',
		                min:p,
		                type:'datetime',
		                trigger:'click',
		                done:function (value,date) {
		                    start.config.max = date;
		                    start.config.max.month = date.month-1;
		                }
		            })
		form.render(); //更新全部
		
	})
	
</script>
</body>
</html>